package com.li.mappers;

import com.li.pojo.Feedback;

import java.util.List;

/**
@author sun
@date 2022/5/17 - 21:16
*/
public interface FeedbackMapper {
    /**
     * delete by primary key
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(Feedback record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(Feedback record);

    /**
     * select by primary key
     * @param id primary key
     * @return object by primary key
     */
    Feedback selectByPrimaryKey(Integer id);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(Feedback record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(Feedback record);

    List<Feedback> findFeedback(Feedback feedBack);
}
